<?php
use think\facade\Route;
use think\facade\Config;

Config::load('menu/name', 'name');
Config::load('snake/main', 'main');

Route::view('/', 'admin/signIn');
Route::view('/404', 'system/404');
Route::view('/adminList', 'admin/adminList')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->middleware(\app\middleware\CheckAdminUserRolePermission::class);
Route::view('/adminRole', 'admin/adminRole')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->middleware(\app\middleware\CheckAdminUserRolePermission::class);
Route::view('/adminUserInfo', 'admin/adminUserInfo')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/adminAdd', 'admin/adminAdd')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/adminEdit/:id', 'admin/adminEdit')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/adminRoleAdd', 'admin/adminRoleAdd')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/adminRoleEdit/:id', 'admin/adminRoleEdit')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/home', 'home/base')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/welcome', 'home/welcome')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/operatingLog', 'system/operatingLog')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->middleware(\app\middleware\CheckAdminUserRolePermission::class);
Route::view('/adminLoginLog', 'system/adminLoginLog')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->middleware(\app\middleware\CheckAdminUserRolePermission::class);
Route::view('/menu', 'system/menu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->middleware(\app\middleware\CheckAdminUserRolePermission::class);
Route::view('/editTopMenu/:id', 'system/editTopMenu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/editSonMenu/:id', 'system/editSonMenu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/addSonMenu/:id', 'system/addSonMenu')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class);
Route::view('/iconFont', 'system/iconFont')
    ->middleware(\app\middleware\CheckAdminUserSignIn::class)
    ->middleware(\app\middleware\CheckAdminUserRolePermission::class);